import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;

public class DBOpertator {

    public Connection getConnection(String ip, String port, String user, String password) throws SQLException {
        String dbUrl = "jdbc:mysql://" + ip + ":" + port + "/world";
        Connection conn = null;
        conn = DriverManager.getConnection(dbUrl, user, password);
        return conn;
    }

    public ResultSet executeQuery(Connection conn,String sql) {
       return null;
    }
    public int executeUpdate(Connection conn,String sql) {
        return 0;
    }

}
